This quirk fixed my problem with Home Assistant's recent update (12/01/26) breaking what appears to be V1 quirk compatibility. 

This was vibe-coded with gemini, and works in my install. YMMV, back up anything you do before making changes.

Gemini did warn that there may be a couple of bugs, so be aware of that.

Greatnow that ts0601_284 imports cleanly, watch for the two runtime bugs in VirtualChannel as your energy meter starts reporting values:

In virtual_channel_initial_values, ChannelConfiguration.CONSUMPTION_MINUS_PRODUCTION in self.channel_configuration_type will raise a TypeError when cumulative values arrive in consumption-minus-production mode because channel_configuration_type is an enum class rather than a collection.

In _cumulative_consumption_minus_production, value_b_prev = cluster_a._get_previous_value(attr_name) reads from cluster_a instead of cluster_b.



- wereboar 12/26
